﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace NJL.WebManage.Citys
{
    public partial class ManageCity :BasePage
    {
        NJL.BLL.NJL_CS_AREA bllArea = new BLL.NJL_CS_AREA();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bind();
            }

        }
        void bind()
        {
            if (WEBSITE_CODE != "1")
            {
                string ProvinceId = WEBSITE_CODE.Substring(0, 2);
                DataSet dscity = bllArea.GetList("AREA_CODE like '" + ProvinceId + "%00' and deep=2");
                rptUserList.DataSource = dscity;
                rptUserList.DataBind();
            }
        }

        protected void rptUserList_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            Literal lit = e.Item.FindControl("litNum") as Literal;
            lit.Text = (e.Item.ItemIndex + 1).ToString();
        }

     
    }
}